package com.sizu.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.sizu.common.dto.PpGDto;
import com.sizu.entity.TPurchaseListGoods;
import com.sizu.mapper.TPurchaseListGoodsMapper;
import com.sizu.service.ITPurchaseListGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mht
 * @since 2020-02-21
 */
@Service
public class TPurchaseListGoodsServiceImpl extends ServiceImpl<TPurchaseListGoodsMapper, TPurchaseListGoods> implements ITPurchaseListGoodsService {

    @Autowired
    private TPurchaseListGoodsMapper tPurchaseListGoodsMapper;

    //查询的方法
    @Override
    public List<TPurchaseListGoods> selectGoodsList() {

        return tPurchaseListGoodsMapper.selectGoodsList();
    }

    @Override
    public PpGDto purchaseGoodsOne(Integer id) {

        return tPurchaseListGoodsMapper.purchaseGoodsOne(id);
    }
}
